package com.yunsom.testdemo.design.vistor;

import java.util.Random;

/**
 * @author Xbao
 * @version 1.0
 * @description 员工基类
 * @date 2021/3/19 16:16
 */
public abstract class AbstractStaff {

  public String name;

  public int kpi;

  public AbstractStaff(String name) {
    this.name = name;
    this.kpi = new Random().nextInt(10);
  }

  //核心方法，接受访问者访问
  public abstract void accept(Visitor visitor);

}
